Any singular irreducible cubic curve (or simply, cubic) after an affine transformation can be written as either [Formula: see text], or [Formula: see text], or [Formula: see text]. We classify the phase portraits of all quadratic polynomial differential systems having the invariant cubic [Formula: see text]. We prove that there are [Formula: see text] different topological phase portraits for such quadratic polynomial differential systems. We control all the bifurcations among these distinct topological phase portraits. These systems have no limit cycles. Only three phase portraits have a center, 19 of these phase portraits have one polycycle, three of these phase portraits have two polycycles. The maximum number of separartices that have these phase portraits is 26 and the minimum number is nine, the maximum number of canonical regions of these phase portraits is seven and the minimum is three.