Concrete5 Blocks do not get deleted when they are "removed" because of consistency reasons in the history.
Now I have the following situation: I have a custom block with the database table called btMyCustomBlock.
It looks like this:
|---bID---|---cID---|---someParam---|
Now, when such a block is "removed" and the Page is saved, the database will still maintain the block - which is ok.
BUT: I need a way to detect if my block is used on this page right now. I am looking for something like:
Select a random entry from btMyCustomBlock WHERE entry is used as a block on the page right now.
How can I do that? I found out that the table Blocks has the field bIsActive
but it seems that this does not correlate with what I am looking for, does it?